'use strict';

/**
 * Config for the router
 */
angular.module('app')
  .run(
    [          '$rootScope', '$state', '$stateParams',
      function ($rootScope,   $state,   $stateParams) {
          $rootScope.$state = $state;
          $rootScope.$stateParams = $stateParams;        
      }
    ]
  )
  .config(
    [ '$stateProvider', '$urlRouterProvider',
      function ($stateProvider, $urlRouterProvider) {
          
          $urlRouterProvider
              .otherwise('/app/News/news');
          $stateProvider
              .state('app', {
                  abstract: true,
                  url: '/app',
                  templateUrl: 'tpl/app.html'+Zhdversion
              })
              .state('app.News_news', {
                  url: '/News/news',
                  templateUrl: 'tpl/News/news.html'+Zhdversion
              })
              .state('app.Employee_List', {
                  url: '/Employee/List',
                  templateUrl: 'tpl/Employee/List.html'+Zhdversion,
                  resolve: {
                      deps: [
                          '$ocLazyLoad',
                          function ($ocLazyLoad) {
                              return $ocLazyLoad.load(['js/controllers/chart.js']);
                          }
                      ]
                  }
              })
              .state('app.Employee_Add', {
                  url: '/Employee/Add',
                  templateUrl: 'tpl/Employee/Add.html'+Zhdversion,
                  resolve: {
                      deps: [
                          '$ocLazyLoad',
                          function ($ocLazyLoad) {
                              return $ocLazyLoad.load(['js/controllers/chart.js']);
                          }
                      ]
                  }
              })
              .state('app.Employee_Edit', {
                  url: '/Employee/Edit',
                  templateUrl: 'tpl/Employee/Edit.html'+Zhdversion,
                  resolve: {
                      deps: [
                          '$ocLazyLoad',
                          function ($ocLazyLoad) {
                              return $ocLazyLoad.load(['js/controllers/chart.js']);
                          }
                      ]
                  },
                  params: {
                      userdata: ""
                  }
              })
              .state('app.Admin_SetRoles', {
                  url: '/Admin/SetRoles',
                  templateUrl: 'tpl/Admin/SetRoles.html'+Zhdversion,
                  resolve: {
                      deps: [
                          '$ocLazyLoad',
                          function ($ocLazyLoad) {
                              return $ocLazyLoad.load(['js/controllers/chart.js']);
                          }
                      ]
                  },
                  params: {
                      userdata: ""
                  }
              })
              .state('app.tables', {
                  url: '/tables',
                  templateUrl: 'tpl/tables.html'+Zhdversion,
                  resolve: {
                      deps: [
                          '$ocLazyLoad',
                          function ($ocLazyLoad) {
                              return $ocLazyLoad.load(['js/controllers/chart.js']);
                          }
                      ]
                  }
              })
              .state('app.buildjihuadan', {
                  url: '/buildjihuadan',
                  templateUrl: 'tpl/buildjihuadan.html'+Zhdversion,
                  resolve: {
                      deps: [
                          '$ocLazyLoad',
                          function ($ocLazyLoad) {
                              return $ocLazyLoad.load(['js/controllers/chart.js']);
                          }
                      ]
                  }
              })
              .state('app.Order_orderList', {
                  url: '/Order/orderList',
                  templateUrl: 'tpl/Order/orderList.html'+Zhdversion,
                  resolve: {
                      deps: [
                          '$ocLazyLoad',
                          function ($ocLazyLoad) {
                              return $ocLazyLoad.load(['js/controllers/chart.js']);
                          }
                      ]
                  }
              })
              .state('app.Order_MyorderList', {
                  url: '/Order/MyorderList',
                  templateUrl: 'tpl/Order/MyorderList.html'+Zhdversion,
                  resolve: {
                      deps: [
                          '$ocLazyLoad',
                          function ($ocLazyLoad) {
                              return $ocLazyLoad.load(['js/controllers/chart.js']);
                          }
                      ]
                  }
              })
              .state('app.Purchasing_MyPurList', {
                  url: '/Purchasing/MyPurList',
                  templateUrl: 'tpl/Purchasing/MyPurList.html'+Zhdversion
              })
              .state('app.TraderManage_List', {
                  url: '/TraderManage/List',
                  templateUrl: 'tpl/TraderManage/List.html'+Zhdversion
              })
              .state('app.TraderManage_Add', {
                  url: '/TraderManage/Add',
                  templateUrl: 'tpl/TraderManage/Add.html'+Zhdversion
              })
              .state('app.Warehouse_List', {
                  url: '/Warehouse/List',
                  templateUrl: 'tpl/Warehouse/List.html'+Zhdversion
              })
              .state('app.FieldMan_FieldManList', {
                  url: '/FieldMan/FieldManList',
                  templateUrl: 'tpl/FieldMan/FieldManList.html'+Zhdversion,
                  resolve: {
                      deps: [
                          '$ocLazyLoad',
                          function ($ocLazyLoad) {
                              return $ocLazyLoad.load(['js/controllers/chart.js']);
                          }
                      ]
                  }
              })
              .state('app.Order_Detail', {
                  url: '/Order/Detail',
                  templateUrl: 'tpl/Order/Detail.html'+Zhdversion,
                  resolve: {
                      deps: [
                          '$ocLazyLoad',
                          function ($ocLazyLoad) {
                              return $ocLazyLoad.load(['js/controllers/chart.js']);
                          }
                      ]
                  },
                  params: {
                      orderid: ""
                  }
              })
              .state('app.Director_OrderDetail', {
                  url: '/Director/OrderDetail',
                  templateUrl: 'tpl/Director/OrderDetail.html'+Zhdversion,
                  params: {
                      orderid: ""
                  }
              })
              .state('app.Purchasing_Detail', {
                  url: '/Purchasing/Detail',
                  templateUrl: 'tpl/Purchasing/Detail.html'+Zhdversion,
                  resolve: {
                      deps: [
                          '$ocLazyLoad',
                          function ($ocLazyLoad) {
                              return $ocLazyLoad.load(['js/controllers/chart.js']);
                          }
                      ]
                  },
                  params: {
                      orderid: ""
                  }
              })
              .state('app.Director_PurchasingDetail', {
                  url: '/Director/PurchasingDetail',
                  templateUrl: 'tpl/Director/PurchasingDetail.html'+Zhdversion,
                  params: {
                      orderid: "",
                      type:""
                  }
              })
              .state('app.Purchasing_MyDetail', {
                  url: '/Purchasing/MyDetail',
                  templateUrl: 'tpl/Purchasing/MyDetail.html'+Zhdversion,
                  params: {
                      orderid: "",
                      type:""
                  }
              })
              .state('app.Purchasing_MyDetailPurchase', {
                  url: '/Purchasing/MyDetailPurchase',
                  templateUrl: 'tpl/Purchasing/MyDetailPurchase.html'+Zhdversion,
                  params: {
                      orderid: "",
                      type:""
                  }
              })
              .state('app.FieldMan_FieldManDetail', {
                  url: '/FieldMan/FieldManDetail',
                  templateUrl: 'tpl/FieldMan/FieldManDetail.html'+Zhdversion,
                  resolve: {
                      deps: [
                          '$ocLazyLoad',
                          function ($ocLazyLoad) {
                              return $ocLazyLoad.load(['js/controllers/chart.js']);
                          }
                      ]
                  },
                  params: {
                      orderid: ""
                  }
              })
              .state('app.Order_MyDetail', {
                  url: '/Order/MyDetail',
                  templateUrl: 'tpl/Order/MyDetail.html'+Zhdversion,
                  resolve: {
                      deps: [
                          '$ocLazyLoad',
                          function ($ocLazyLoad) {
                              return $ocLazyLoad.load(['js/controllers/chart.js']);
                          }
                      ]
                  },
                  params: {
                      orderid: ""
                  }
              })
              .state('app.Order_OrderBaseEdit', {
                  url: '/Order/OrderBaseEdit',
                  templateUrl: 'tpl/Order/OrderBaseEdit.html'+Zhdversion,
                  resolve: {
                      deps: [
                          '$ocLazyLoad',
                          function ($ocLazyLoad) {
                              return $ocLazyLoad.load(['js/controllers/chart.js']);
                          }
                      ]
                  },
                  params: {
                      orderid: ""
                  }
              })
              .state('app.Order_CommodityInfoEdit', {
                  url: '/Order/CommodityInfoEdit',
                  templateUrl: 'tpl/Order/CommodityInfoEdit.html'+Zhdversion,
                  params: {
                      orderid: ""
                  }
              })
              .state('app.Purchasing_CommodityInfoEdit', {
                  url: '/Purchasing/CommodityInfoEdit',
                  templateUrl: 'tpl/Purchasing/CommodityInfoEdit.html'+Zhdversion,
                  params: {
                      orderid: ""
                  }
              })
              .state('app.Purchasing_MyCommodityInfoEdit', {
                  url: '/Purchasing/MyCommodityInfoEdit',
                  templateUrl: 'tpl/Purchasing/MyCommodityInfoEdit.html'+Zhdversion,
                  params: {
                      orderid: ""
                  }
              })
              .state('app.Purchasing_MyCommodityInfoEdit2', {
                  url: '/Purchasing/MyCommodityInfoEdit2',
                  templateUrl: 'tpl/Purchasing/MyCommodityInfoEdit2.html'+Zhdversion,
                  params: {
                      orderid: "",
                      urltype:""
                  }
              })
              .state('app.FieldMan_FieldManEdit', {
                  url: '/FieldMan/FieldManEdit',
                  templateUrl: 'tpl/FieldMan/FieldManEdit.html'+Zhdversion,
                  resolve: {
                      deps: [
                          '$ocLazyLoad',
                          function ($ocLazyLoad) {
                              return $ocLazyLoad.load(['js/controllers/chart.js']);
                          }
                      ]
                  },
                  params: {
                      orderid: "",
                      type:""
                  }
              })
              .state('app.Order_Add', {
                  url: '/Order/Add',
                  templateUrl: 'tpl/Order/Add.html'+Zhdversion,
                  resolve: {
                      deps: [
                          '$ocLazyLoad',
                          function ($ocLazyLoad) {
                              return $ocLazyLoad.load(['js/controllers/chart.js']);
                          }
                      ]
                  },
                  params: {
                        type: ""
                  }
              })
              .state('app.Purchasing_AddPurchasing', {
                  url: '/Purchasing/AddPurchasing',
                  templateUrl: 'tpl/Purchasing/AddPurchasing.html'+Zhdversion,
                  resolve: {
                      deps: [
                          '$ocLazyLoad',
                          function ($ocLazyLoad) {
                              return $ocLazyLoad.load(['js/controllers/chart.js']);
                          }
                      ]
                  },
                  params: {
                      type: ""
                  }
              })
              .state('app.page', {
                  url: '/page',
                  template: '<div ui-view class="fade-in-down"></div>'
              })
              // others
              .state('lockme', {
                  url: '/lockme',
                  templateUrl: 'tpl/page_lockme.html'+Zhdversion
              })
              .state('access', {
                  url: '/access',
                  template: '<div ui-view class="fade-in-right-big smooth"></div>'
              })
              .state('access.signin', {
                  url: '/signin',
                  templateUrl: 'tpl/page_signin.html'+Zhdversion,
                  resolve: {
                      deps: [
                          'uiLoad',
                          function (uiLoad) {
                              return uiLoad.load(
                                  [
                                      'js/controllers/signin.js',
                                      'js/login/md5.js'
                                  ]
                              );
                          }
                      ]
                  }
              })
              .state('access.signup', {
                  url: '/signup',
                  templateUrl: 'tpl/page_signup.html'+Zhdversion,
                  resolve: {
                      deps: [
                          'uiLoad',
                          function (uiLoad) {
                              return uiLoad.load(['js/controllers/signup.js']);
                          }
                      ]
                  }
              })
              .state('access.forgotpwd', {
                  url: '/forgotpwd',
                  templateUrl: 'tpl/page_forgotpwd.html'+Zhdversion
              })
              .state('access.404', {
                  url: '/404',
                  templateUrl: 'tpl/page_404.html'+Zhdversion
              })
              .state({
                  name: "app.Supplier_Depot",
                  url: '/Supplier/Depot',
                templateUrl: 'tpl/Supplier/Depot.html'+Zhdversion
              })
              .state({
                  name: "app.Supplier_Add",
                  url: '/Supplier/Add',
                  templateUrl: 'tpl/Supplier/Add.html'+Zhdversion
              })
              .state({
                  name: "app.Depot_MoreWarehouseEntrys",
                  url: '/Depot/MoreWarehouseEntrys?id',
                  templateUrl: 'tpl/Depot/MoreWarehouseEntrys.html'+Zhdversion
              })
              .state({
                  name: "app.Depot_MoreDeliveryLists",
                  url: '/Depot/MoreDeliveryLists?id&num',
                  templateUrl: 'tpl/Depot/MoreDeliveryLists.html'+Zhdversion
              })
              .state({
                  name: "app.Depot_DeliveryLists",
                  url: '/Deopt/DeliveryLists?id&num',
                  templateUrl: 'tpl/Depot/DeliveryLists.html'+Zhdversion
              })
              .state({
                  name: "app.Depot_WarehouseEntrys",
                  url: '/Depot/WarehouseEntrys?id&num',
                  templateUrl: 'tpl/Depot/WarehouseEntrys.html'+Zhdversion
              })
              .state({
                  name: "app.Depot_DepotRecords",
                  url: '/Depot/DepotRecords?id&num',
                  templateUrl: 'tpl/Depot/DepotRecords.html'+Zhdversion
              })
              .state({
                  name: "app.Provider_DepotCommodityList",
                  url: '/Provider/DepotCommodityList?id&sid&Name&type&num',
                  templateUrl: 'tpl/Provider/DepotCommodityList.html'+Zhdversion
              })
              .state({
                  name: "app.Supplier_AddDepotCommodity",
                  url: '/Supplier/AddDepotCommodity?id',
                  templateUrl: 'tpl/Supplier/AddDepotCommodity.html'+Zhdversion
              })
          .state({
              name: "app.Supplier_NonstandardDiscount",
              url: '/Supplier/NonstandardDiscount?id&name',
              templateUrl: 'tpl/Supplier/NonstandardDiscount.html'+Zhdversion
              //params: {id:""}
          }).state({
              name: "app.Supplier_SupplierEdit",
              url: '/Supplier/SupplierEdit?id',
              templateUrl: 'tpl/Supplier/SupplierEdit.html'+Zhdversion
              //params: {id:""}SupplierAdd

          }).state({
              name: "app.Supplier_SupplierAdd",
              url: '/Supplier/SupplierAdd',
              templateUrl: 'tpl/Supplier/SupplierAdd.html'+Zhdversion
              //params: {id:""}SupplierAdd

          }).state({
              name: "app.Supplier_SupplierCommodity",
              url: '/Supplier/SupplierCommodity?id&name',
              templateUrl: 'tpl/Supplier/SupplierCommodity.html'+Zhdversion
              //params: {id:""}
          })
           .state({
               name: "app.Approval_Index",
               url: '/Approval/Index',
               templateUrl: 'tpl/Approval/Index.html'+Zhdversion
               //params: {id:""}
           })
           .state({
               name: "app.Order_Director",
               url: '/Director/OrderList',
               templateUrl: 'tpl/Director/OrderList.html'+Zhdversion
               //params: {id:""}
           })
           .state({
               name: "app.Purchasing_Director",
               url: '/Director/PurchasingList',
               templateUrl: 'tpl/Director/PurchasingList.html'+Zhdversion
               //params: {id:""}
           })
           .state({
               name: "app.Approval_Details",
               url: '/Approval/Details?id',
               templateUrl: 'tpl/Approval/Details.html'+Zhdversion
           })
              .state({
                  name: "app.Approval_RefundManage",
                  url: '/Approval/RefundManage?id',
                  templateUrl: 'tpl/Approval/RefundManage.html'+Zhdversion
              })
              .state({
                  name: "app.Approval_LockOrderManage",
                  url: '/Approval/LockOrderManage?id',
                  templateUrl: 'tpl/Approval/LockOrderManage.html'+Zhdversion
              })
              .state({
                  name: "app.Approval_PurchasingDetails",
                  url: '/Approval/PurchasingDetails?id',
                  templateUrl: 'tpl/Approval/PurchasingDetails.html'+Zhdversion
              })
              .state({
                  name: "app.Approval_PriceConfirmDatas",
                  url: '/Approval/PriceConfirmDatas?id',
                  templateUrl: 'tpl/Approval/PriceConfirmDatas.html'+Zhdversion
              })
              .state('app.LockOrder_List', {
                  url: '/LockOrder/LockOrderList',
                  templateUrl: 'tpl/LockOrder/LockOrderList.html'+Zhdversion,
                  resolve: {
                      deps: [
                          '$ocLazyLoad',
                          function ($ocLazyLoad) {
                              return $ocLazyLoad.load(['js/controllers/chart.js']);
                          }
                      ]
                  }
              })
              .state('app.Information_InformationList', {
                  url: '/Information/InformationList',
                  templateUrl: 'tpl/Information/InformationList.html'+Zhdversion,
                  resolve: {
                      deps: [
                          '$ocLazyLoad',
                          function ($ocLazyLoad) {
                              return $ocLazyLoad.load(['js/controllers/chart.js']);
                          }
                      ]
                  }
              })
              .state('app.LockOrder_Detail', {
                  url: '/LockOrder/Detail',
                  templateUrl: 'tpl/LockOrder/Detail.html'+Zhdversion,
                  resolve: {
                      deps: [
                          '$ocLazyLoad',
                          function ($ocLazyLoad) {
                              return $ocLazyLoad.load(['js/controllers/chart.js']);
                          }
                      ]
                  },
                  params: {
                      orderid: ""
                  }
              })
              .state('app.LockOrder_LockToOrder', {
                  url: '/LockOrder/LockToOrder',
                  templateUrl: 'tpl/LockOrder/LockToOrder.html'+Zhdversion,
                  resolve: {
                      deps: [
                          '$ocLazyLoad',
                          function ($ocLazyLoad) {
                              return $ocLazyLoad.load(['js/controllers/chart.js']);
                          }
                      ]
                  },
                  params: {
                      orderid: ""
                  }
              })
              .state('app.LockOrder_Add', {
                  url: '/LockOrder/Add',
                  templateUrl: 'tpl/LockOrder/Add.html'+Zhdversion,
                  resolve: {
                      deps: [
                          '$ocLazyLoad',
                          function ($ocLazyLoad) {
                              return $ocLazyLoad.load(['js/controllers/chart.js']);
                          }
                      ]
                  }
              })
           .state({
               name: "app.Approval_AdmIndex",
               url: '/Approval/AdmIndex',
               templateUrl: 'tpl/Approval/AdmIndex.html'+Zhdversion
           }).state({
                  name: "app.Purchasing_List",
                  url: '/Purchasing/List',
                  templateUrl: 'tpl/Purchasing/List.html'+Zhdversion
              })
           .state({
               name: "app.Approval_Manage",
               url: '/Approval/Manage',
               templateUrl: 'tpl/Approval/Manage.html'+Zhdversion
           }).state({
               name: "app.Approval_ManageItems",
               url: '/Approval/ManageItems?typeName',
               templateUrl: 'tpl/Approval/ManageItems.html'+Zhdversion
           }).state({
               name: "app.Customer_List",
               url: '/Customer/List',
               templateUrl: 'tpl/Customer/List.html'+Zhdversion
           }).state({
               name: "app.Customer_Edit",
               url: '/Customer/Edit?id&action',
               templateUrl: 'tpl/Customer/Edit.html'+Zhdversion
           }).state({
               name: "app.Customer_Confirm",
               url: '/Customer/Confirm?id&from',
               templateUrl: 'tpl/Customer/Confirm.html'+Zhdversion
           }).state({
               name: "app.Customer_ConfirmList",
               url: '/Customer/ConfirmList',
               templateUrl: 'tpl/Customer/ConfirmList.html'+Zhdversion
           }).state({
               name: "app.Customer_AddAppr",
               url: '/Customer/AddAppr',
               templateUrl: 'tpl/Customer/AddAppr.html'+Zhdversion
           }).state({
              name: "app.Customer_Add",
              url: '/Customer/Add',
              templateUrl: 'tpl/Customer/Add.html'+Zhdversion
          }).state({
               name: "app.Customer_SelfList",
               url: '/Customer/SelfList',
               templateUrl: 'tpl/Customer/SelfList.html'+Zhdversion
           }).state({
               name: "app.Customer_AccountList",
               url: '/Customer/AccountList?id',
               templateUrl: 'tpl/Customer/AccountList.html'+Zhdversion
           }).state({
              name: "app.Customer_MyAccountList",
              url: '/Customer/MyAccountList?id&from',
              templateUrl: 'tpl/Customer/MyAccountList.html'+Zhdversion
          }).state({
               name: "app.Customer_Detail",
               url: '/Customer/Detail?id',
               templateUrl: 'tpl/Customer/Detail.html'+Zhdversion
           }).state({
               name: "app.Supplier_List",
               url: '/Supplier/List',
               templateUrl: 'tpl/Supplier/List.html'+Zhdversion
           }).state({
               name: "app.Finance_PayInfoList",
               url: '/Finance/PayInfoList',
               templateUrl: 'tpl/Finance/PayInfoList.html'+Zhdversion
           }).state({
               name: "app.Finance_Flow",
               url: '/Finance/Flow?id&name',
               templateUrl: 'tpl/Finance/Flow.html'+Zhdversion
           }).state({
              name: "app.Finance_ClientAccount",
              url: '/Finance/ClientAccount?id&name',
              templateUrl: 'tpl/Finance/ClientAccount.html'+Zhdversion
          }).state({
               name: "app.Finance_AccountList",
               url: '/Finance/AccountList',
               templateUrl: 'tpl/Finance/AccountList.html'+Zhdversion
           }).state({
               name: "app.ClientManager_PaymentInfoList",
               url: '/ClientManager/PaymentInfoList',
               templateUrl: 'tpl/ClientManager/PaymentInfoList.html'+Zhdversion
           }).state({
               name: "app.ClientManager_PaymentInfo",
               url: '/ClientManager/PaymentInfo?id&from',
               templateUrl: 'tpl/ClientManager/PaymentInfo.html'+Zhdversion
           }).state({
               name: "app.InfoCollection_List",
               url: '/InfoCollection/List',
               templateUrl: 'tpl/InfoCollection/List.html'+Zhdversion
           }).state({
               name: "app.InfoCollection_Add",
               url: '/InfoCollection/Add?id',
               templateUrl: 'tpl/InfoCollection/Add.html'+Zhdversion
           }).state({
              name: "app.InfoCollection_Detail",
              url: '/InfoCollection/Detail?id',
              templateUrl: 'tpl/InfoCollection/Detail.html'+Zhdversion
          }).state({
              name: "app.InfoCollection_View",
              url: '/InfoCollection/View?id',
              templateUrl: 'tpl/InfoCollection/View.html'+Zhdversion
          }).state({
               name: "app.MyLockOrder_List",
               url: '/LockOrder/MyLockOrderList',
               templateUrl: 'tpl/LockOrder/MyOrderList.html'+Zhdversion
           }).state({
               name: "app.MyLockOrder_Detail",
               url: '/LockOrder/MyDetail',
               templateUrl: 'tpl/LockOrder/MyDetail.html'+Zhdversion,
               params: {
                   orderid: ""
               }
           }).state({
               name: "app.Report_DayOrder",
               url: '/Report/DayOrder',
               templateUrl: 'tpl/Report/DayOrder.html'+Zhdversion
           }).state({
              name: "app.Report_Purchase",
              url: '/Report/Purchase',
              templateUrl: 'tpl/Report/Purchase.html'+Zhdversion
           }).state({
              name: "app.Report_Daytake",
              url: '/Report/Daytake',
              templateUrl: 'tpl/Report/Daytake.html'+Zhdversion
           }).state({
              name: "app.Report_NowDepotProfit",
              url: '/Report/NowDepotProfit',
              templateUrl: 'tpl/Report/NowDepotProfit.html'+Zhdversion
          }).state({
              name: "app.Report_Dailysales",
              url: '/Report/Dailysales',
              templateUrl: 'tpl/Report/Dailysales.html'+Zhdversion
          }).state({
               name: "app.Report_DebtReport",
               url: '/Report/DebtReport',
               templateUrl: 'tpl/Report/DebtReport.html'+Zhdversion
           }).state({
                  name: "app.Provider_Add",
                  url: '/Provider/Add',
                  templateUrl: 'tpl/Provider/Add.html'+Zhdversion
           }).state({
                  name: "app.Provider_Edit",
                  url: '/Provider/Edit?id&type',
                  templateUrl: 'tpl/Provider/Edit.html'+Zhdversion
           }).state({
              name: "app.Provider_ToProvider",
              url: '/Provider/ToProvider',
              templateUrl: 'tpl/Provider/ToProvider.html'+Zhdversion
          }).state({
              name: "app.Provider_ToProviderList",
              url: '/Provider/ToProviderList',
              templateUrl: 'tpl/Provider/ToProviderList.html'+Zhdversion
          }).state({
              name: "app.Provider_ToProviderDetail",
              url: '/Provider/ToProviderDetail?id',
              templateUrl: 'tpl/Provider/ToProviderDetail.html'+Zhdversion
          }).state({
                  name: "app.Provider_AddDepotCommodity",
                  url: '/Provider/AddDepotCommodity?id&sid&Name&type',
                  templateUrl: 'tpl/Provider/AddDepotCommodity.html'+Zhdversion
           }).state({
              name: "app.Provider_NonstandardDiscount",
              url: '/Provider/NonstandardDiscount?id&name',
              templateUrl: 'tpl/Provider/NonstandardDiscount.html'+Zhdversion
           }).state({
               name: "app.Provider_List",
               url: '/Provider/List?id',
               templateUrl: 'tpl/Provider/List.html'+Zhdversion
           }).state({
               name: "app.Report_ManagementDay",
               url: '/Report/ManagementDay',
               templateUrl: 'tpl/Report/ManagementDay.html'+Zhdversion
           });
      }
    ]
  );